vector object

This method returns the length of the vector.

float length()

Parameters:
None.

Return value:
The total length of the vector.

Remarks:
None.

Example:
// Create a vector and display its length.

void main()
{
vector test(5,2,3);
alert("Information", "The vector's length is "+test.length()+".");
}